package com.shishuo.cms.service;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shishuo.cms.dao.IBaseDAO;

@Service
public class BaseService <T,ID extends Serializable>{
	@Autowired
	private IBaseDAO<T, ID> baseDao;
	public int insert(T entity) {
        return baseDao.save(entity);
    }
  
    public int update(T entity) {
        return baseDao.update(entity);
    }
}
